package refactor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录系统中的各个功能系统的包括的设施
 * </p>
 *
 * @author 杨健
 * @since 2019-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Facilities implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("region_id")
    private Integer regionId;

    /**
     * 主键
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 设施编号
     */
    @TableField("code")
    private String code;

    /**
     * 设施位于的地址的具体描述
     */
    @TableField("description")
    private String description;

    /**
     * 区域
     */
    @TableField("area")
    private String area;

    /**
     * 网元名
     */
    @TableField("net_name")
    private String netName;

    /**
     * 业务类型
     */
    @TableField("task_type")
    private String taskType;

    /**
     * 配置类型
     */
    @TableField("allocation_type")
    private String allocationType;

    /**
     * 经度
     */
    @TableField("longitude")
    private String longitude;

    /**
     * 纬度
     */
    @TableField("latitude")
    private String latitude;

    @TableField("start_time")
    private Long startTime;

    @TableField("end_time")
    private Long endTime;

    /**
     * 0：默认状态，1：正常工作，2：停止使用
     */
    @TableField("work_status")
    private String workStatus;

    public Facilities() {}

    public Facilities (Integer id, Integer regionId, Integer userId, String code, String description, String area, String netName, String taskType, String allocationType, String longitude, String latitude, Long startTime, Long endTime, String workStu) {
        this.id = id;
        this.regionId = regionId;
        this.userId = userId;
        this.code = code;
        this.description = description;
        this.area = area;
        this.netName = netName;
        this.taskType = taskType;
        this.allocationType = allocationType;
        this.longitude = longitude;
        this.latitude = latitude;
        this.startTime = startTime;
        this.endTime = endTime;
        this.workStatus = workStu;
    }
}
